export default class Compose{
    constructor(){
        this.children = [];
        this.parent = null;
    }

    add(obj){
        obj.parent = this;
        this.children.push(obj);
    }
    update(t){
        this.children.forEach((el)=>{
            el.update(t)
        })
    }
}